import { findListByDictId } from '@/api/nb/business/dictionaries_subset'
import { Ref } from 'vue'

export const dictByCode = (code: String, list: Ref) => {
	findListByDictId({ params: { code: code } }).then(res => {
		list.value = res.data
		list.value.unshift({ code: '', name: '请选择' })
	})
}
